I have setup the Apache server for website but received following error Forbidden "403 You don't have permission to access this resource." when I configure file "/etc/httpd/conf/httpd.conf" as per below:
DocumentRoot "/home/bggb/bggb/branch-admin/"
Relax access to content within /var/www.
<Directory "/home/bggb/bggb/branch-admin">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
Further relax access to the default document root:
<Directory "/home/bggb/bggb/branch-admin/">
I have tried below to give Apache server permission:
sudo chown -R apache:apche /home/bggb/bggb/
sudo chgrp -R apache /home/bggb/bggb/
suod find /home/bggb/bggb/ -type d -exec chmod g+rx {} +
sudo find /home/bggb/bggb/ -type f -exec chmod g+r {} +
How I can give proper permission for Apache server when root directory set "/home/bggb/bggb/"?